package com.example.onlineeducation.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.onlineeducation.base.BaseViewModel
import com.example.onlineeducation.data.entity.ProInfoEntity

/**
 * Creator: sindi
 * Date: 2022/04/14
 * UseDes:
 */

class AppViewModel : BaseViewModel() {


    private val _mProInfoEntity = MutableLiveData<ProInfoEntity?>()
    val mProInfoEntity: LiveData<ProInfoEntity?> = _mProInfoEntity

//    private val _mRefreshRecordList = MutableLiveData<Boolean>()
//    val mRefreshRecordList: LiveData<Boolean> = _mRefreshRecordList
//


    /*设置项目全局项目信息*/
    fun refreshProInfo(proInfoEntity: ProInfoEntity?) {
        _mProInfoEntity.postValue(proInfoEntity)
    }

    /*刷新记录*/
//    fun refreshRecord(refresh: Boolean) {
//        _mRefreshRecordList.postValue(refresh)
//    }
}
